package com.UnionPayCenter.mapper;

import com.UnionPayCenter.base.MyMapper;
import com.UnionPayCenter.entity.ChannelEntity;
import com.UnionPayCenter.entity.ShopInfoEntity;
import com.UnionPayCenter.entity.vo.ShopInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ShopInfoMapper extends MyMapper<ShopInfoEntity> {

    ShopInfoEntity selectByShop(@Param("shopId") Integer shopId);

    List<ShopInfoEntity> selectByName(@Param("appName") String appName);

    ShopInfoEntity selectByCardId(@Param("membercardId") String cardId);

    int updateShopCardId(@Param("shopId") int shopId, @Param("cardId") String cardId);

    ShopInfoEntity selectByAppGhId(@Param("appGhId") String appGhId);

    ShopInfoVo selectShopInfo(@Param("shopId") Integer shopId);

    ShopInfoEntity selectByAppid(@Param("appid") String appid);
}
